<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>首页</title>
	<#noparse><#include "common/csslib.ftl"></#noparse>
</head>
<body>
<div class="card border-0 fanta-form-body">
    <div class="card-body">
        <form class="needs-validation fanta-form" id="${entity?uncap_first}Form">
            <input type="hidden" name="${cfg.keyFieldHump}" value="<#noparse>${</#noparse>${entity?uncap_first}.${cfg.keyFieldHump}<#noparse>}</#noparse>" id="${cfg.keyFieldHump}"/>
            <#assign ignore = ["creator", "createTime", "lastEditTime", "lastEditor"]>

            <#list table.fields as field>
                <#if field_index % 4 == 0 && field_index != 0>
                 </div>
                </#if>
                <#if field_index % 4 == 0 >
                 <div class="form-group row">
                </#if>
                    <#if !ignore?seq_contains(field.propertyName)>
                    <label class="col-sm-1 col-form-label">${field.comment}：</label>
                    <div class="col-sm-2 fanta-form-item">
                        <input class="form-control" id="${field.propertyName}" name="${field.propertyName}" value="<#noparse>${</#noparse>${entity?uncap_first}.${field.propertyName}<#noparse>}</#noparse>" autocomplete="false"/>
                        <span class="fanta-form-required">*</span>
                    </div>
                    </#if>
                <#if !field_has_next>
                 </div>
                </#if>
            </#list>
        </form>
    </div>
</div>
<div class="fanta-form-footer bg-secondary">
    <div class="btn-group">
        <button class="btn btn-info fanta-btn-save">保存</button>
    </div>
    <div class="btn-group">
        <button class="btn btn-light fanta-btn-cancel">取消</button>
    </div>
</div>
<#noparse><#include "common/jslib.ftl"></#noparse>
<script src="<#noparse>${ctx}</#noparse>/js/plugins/jquery-validation/jquery.validate.min.js"></script>
<script src="<#noparse>${ctx}</#noparse>/js/plugins/jquery-validation/messages_zh.min.js"></script>
<script src="<#noparse>${ctx}</#noparse>/js/base/jquery.form.min.js"></script>
<#noparse><script src="${ctx}/js/base/common.js"></script></#noparse>
<script src="<#noparse>${ctx}</#noparse>/js/${cfg.moduleName}/${entity?uncap_first}_form.js"></script>
</body>
</html>